package com.zengqingfa.imp.demo.service;

import com.zengqingfa.imp.demo.dto.Emp;
import com.zengqingfa.imp.demo.dto.EmpQueryDTO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @fileName: EmpService
 * @author: zengqf3
 * @date: 2021-3-3 11:27
 * @description:
 */
public interface EmpService {

    /**
     * 查询所有
     *
     * @return
     */
    List<Emp> findAll();


    List<Emp> findAll2();

    Emp findById(Integer id);

    Integer findCount();


    List<Emp> findByPage(Integer pageNo, Integer pageSize);

    /**
     * 导出
     * @param response
     * @param dto
     */
    void export(HttpServletResponse response, EmpQueryDTO dto);
}
